<div class="card-head"><h4>轮播图管理(请统一上传png格式)</h4></div>
<div class="card-block bg-white">
  <div class="block">
    <div class="box" style="margin-top: 1.25rem">
      <div class="box-body no-padding">
        <p-dialog [(visible)]="showUpdateFlag" [positionTop]="80" [modal]="true" [responsive]="true" [width]="500" [minWidth]="200" [minY]="70">
          <div class="form-group has-feedback">
            <input name="url" [(ngModel)]="imgLinkUrl" #url="ngModel" type="text" class="form-control" placeholder="链接">
            <input style="margin-top: 10px;" name="imgIntroduce" [(ngModel)]="imgIntroduce" #introduce="ngModel" type="text" class="form-control" placeholder="简介">
          </div>
          <!--<div class="form-group has-feedback">-->
          <!--</div>-->
          <p-footer>
            <div style="text-align: center;">
              <button (click)="updateImgInfo()" type="submit" class="btn btn-info">修改</button>
            </div>
          </p-footer>
        </p-dialog>
        <!--修改信息-->
        <table class="table table-striped">
          <tr>
            <th>图片</th>
            <th>链接</th>
            <th>简介</th>
            <th>上传用户</th>
            <th>上传时间</th>
            <th>更新时间</th>
            <th>操作</th>
          </tr>
          <tr *ngFor="let data of imageInfos">
            <th>
              <img style="width: 100px;height: 50px;" src="../../assets/images/{{data.code}}.png">
            </th>
            <th class="th_center">{{data.url}}</th>
            <th class="th_center">{{data.introduce}}</th>
            <th class="th_center">{{data.creator}}</th>
            <th class="th_center">{{data.createTime}}</th>
            <th class="th_center">{{data.updateTime}}</th>
            <th class="th_center">
              <a href="javascript:;" (click)="showUpdate(data)">修改</a>|
              <a href="javascript:;" (click)="deleteImg(data.code)">删除</a>
            </th>
          </tr>
        </table>
        <!--/修改信息-->
        <h5>上传图片</h5>
        <p-fileUpload
          name="file"
          url="{{api}}/services/auth/upload"
          (onUpload)="onImgUpload($event)" accept=".png" maxFileSize="10000000">
        </p-fileUpload>
      </div>
    </div>
  </div>
  <div style="border-bottom: 1px solid #E5E5E5;margin-top: 1.25rem;margin-bottom:1.25rem"></div>
</div>
<div class="card-head"><h4>公告管理</h4></div>
<div class="card-block bg-white">
  <div class="block">
    <div class="box" style="margin-top: 1.25rem">
      <div class="box-body no-padding">
        <table class="table table-striped">
          <tr>
            <th>文件名</th>
            <th>上传用户</th>
            <th>上传时间</th>
            <th>操作</th>
          </tr>
          <tr *ngFor="let data of fileInfos">
            <th>{{data.name}}</th>
            <th>{{data.creator}}</th>
            <th>{{data.createTime}}</th>
            <th>
              <a href="javascript:;" (click)="deleteFile(data.code)">删除</a>
            </th>
          </tr>
        </table>
        <h5>上传公告文件</h5>
        <p-fileUpload
          name="file"
          url="{{api}}/services/auth/upload"
          (onUpload)="onFileUpload($event)" maxFileSize="10000000">
        </p-fileUpload>
      </div>
    </div>
  </div>
  <div style="border-bottom: 1px solid #E5E5E5;margin-top: 1.25rem;margin-bottom:1.25rem"></div>
</div>



